<?php
/**
 * Created by PhpStorm.
 * User: chenxuyi
 * Date: 2018/3/3
 * Time: 下午2:06
 */

namespace App\Validators;

class AdminUserValidator extends BaseValidator
{

    protected $rules = [
        'login' => [
            'username' => 'required|string',
            'password' => 'required|string',
        ],
    ];

    protected $attributes = [
        'username' => '用户名',
        'password' => '密码',
    ];

}